home *** CD-ROM | disk | FTP | other *** search
/ Amiga Mag HDD Backup / Amiga Mag HDD Backup.zip / Amiga Mag HDD Backup / Alexander.img.bin / Alexander.img / 315 2 files Archive.sit / Any plain-text files / ? Any plain-text file 72 < prev    next >
Text File  |  1995-01-03  |  1KB  |  40 lines

  1. equest
  2.     *  can not be completed immediately.
  3.    */
  4.  
  5.    printf("\nCalling BeginIO with time delay request\n");
  6.  
  7.    timerIO->tr_time.tv_secs  = 5;
  8.    timerIO->tr_time.tv_micro = 0;
  9.    timerIO->tr_node.io_Flags &= IOF_QUICK;
  10.  
  11.    BeginIO((struct IORequest*)timerIO);
  12.    if ( timerIO->tr_node.io_Error )
  13.    {
  14.       printf("Error from BeginIO, err = %d\n",
  15.              timerIO->tr_node.io_Error);
  16.       goto allDone;
  17.    }
  18.  
  19.    if( ioReqCopy )
  20.    {
  21.       printf("\nCalling SendIO with time delay request\n");
  22.  
  23.       ioReqCopy->tr_node.io_Command = TR_ADDREQUEST;
  24.       ioReqCopy->tr_time.tv_secs  = 60;
  25.       ioReqCopy->tr_time.tv_micro = 0;
  26.  
  27.       SendIO((struct IORequest*)ioReqCopy);
  28.       if ( ioReqCopy->tr_node.io_Error )
  29.          printf("Error from SendIO, err = %d\n",
  30.                ioReqCopy->tr_node.io_Error);
  31.       copySent = 1;
  32.    }
  33.  
  34.    if ( ! (timerIO->tr_node.io_Flags & IOF_QUICK) )
  35.    {
  36.       printf("Waiting for BeginIO to complete...\n");
  37.       WaitIO((struct IORequest*)timerIO);
  38.    }
  39.  
  40.    printf("BeginIO()